import store from '@/store'

export function getDict (dictType, type = false) {
  let dictArr = store.getters.dictAll || {}
  return dictArr[dictType] || []
}